﻿<Window x:Class="MYServer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="服务器端" Height="350" Width="525">

    <Window.Resources>
        <Storyboard x:Key="std">
            <DoubleAnimation Duration="0:0:5"
                                 Storyboard.TargetName="rect"
                                 Storyboard.TargetProperty="(Rectangle.RenderTransform).(TranslateTransform.X)"
                                 To="400"/>
        </Storyboard>
    </Window.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Rectangle x:Name="rect" Grid.Row="0" Width="50" Height="50" Fill="Orange" HorizontalAlignment="Left" VerticalAlignment="Center">
            <Rectangle.RenderTransform>
                <TranslateTransform X="0" Y="0"/>
            </Rectangle.RenderTransform>
        </Rectangle>
        <TextBlock Name="txtDisplay" Grid.Row="1"/>
    </Grid>
</Window>
